import http from '../index';

export const getAll = () => http({
    url: '/api/cooperations',
    method: 'get'
})

export const addCooperation = (data) => http({
    url: '/api/cooperations',
    method: 'post',
    data
})

export const delCooperation = (params) => http({
    url: '/api/cooperations/' + params,
    method: 'delete',
})

export const updataCooperation = (params,data) => http({
    url: '/api/cooperations/'+params,
    method: 'put',
    data
})